package com.etbsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.etbsms.dao.ICodeCountryDAO;
import com.etbsms.domain.CodeCountry;
import com.etbsms.service.ICodeCountryService;

@Service
@Component("codeCountryService")
public class CodeCountryServiceImpl implements ICodeCountryService {

	@Autowired
	private ICodeCountryDAO codeCountryDAO;
	
	@Override
	public List<CodeCountry> getAll() {
		// TODO Auto-generated method stub
		return codeCountryDAO.getAll();
	}

	@Override
	public boolean save(CodeCountry entity) {
		// TODO Auto-generated method stub
		return codeCountryDAO.save(entity);
	}

	@Override
	public CodeCountry get(String code) {
		// TODO Auto-generated method stub
		return codeCountryDAO.get(code);
	}

	@Override
	public List<CodeCountry> query(String qr) {
		// TODO Auto-generated method stub
		return codeCountryDAO.query(qr);
	}
}
